package com.vichat.online.entity;
 

import javax.persistence.*;
import java.util.List;

/***************
 *author: autogen
 *version: 2018-11-17 00:33:32.254
 */
@Entity
@Table(name = "online_user_m_log", catalog = "onlinedb")
public class OnlineUserMLog implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "online_user_m_log";

    /** */
	public static final String ALIAS_ID = "id";
    /** */
	public static final String ALIAS_UID = "uid";
    /** */
	public static final String ALIAS_PARTY_ID = "party_id";
    /** */
	public static final String ALIAS_ORG_ID = "org_id";
    /** */
	public static final String ALIAS_ORG_CODE = "org_code";
    /**秒 */
	public static final String ALIAS_SECOND = "second";
    /**日期，格式：yyyy-mm-dd */
	public static final String ALIAS_DAY = "day";
    /** */
	public static final String ALIAS_STATE = "state";
	
	

 	@Id
	@Column(name = "id", unique = true, nullable = false)
    public java.lang.Long id;
  
 	@Column(name = "uid")
    public java.lang.Long uid;
  
 	@Column(name = "party_id")
    public java.lang.Long partyId;
  
 	@Column(name = "org_id")
    public java.lang.Long orgId;
  
 	@Column(name = "org_code")
    public java.lang.String orgCode;
  
 	@Column(name = "second")
    public java.lang.Long second;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "day")
    public java.util.Date day;
  
 	@Column(name = "state")
    public java.lang.Long state;
  





	public java.lang.Long getId() {
		return this.id;
	}
	
	public void setId(java.lang.Long value) {
		this.id = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.lang.Long getOrgId() {
		return this.orgId;
	}
	
	public void setOrgId(java.lang.Long value) {
		this.orgId = value;
	}

	public java.lang.String getOrgCode() {
		return this.orgCode;
	}
	
	public void setOrgCode(java.lang.String value) {
		this.orgCode = value;
	}

	public java.lang.Long getSecond() {
		return this.second;
	}
	
	public void setSecond(java.lang.Long value) {
		this.second = value;
	}

	public java.util.Date getDay() {
		return this.day;
	}
	
	public void setDay(java.util.Date value) {
		this.day = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}


	
	public OnlineUserMLog() {
	}
	
	public OnlineUserMLog(boolean qryflag) {
	    if(qryflag){
	    		this.id = null;
				this.uid = null;
				this.partyId = null;
				this.orgId = null;
				this.orgCode = null;
				this.second = null;
				this.day = null;
				this.state = null;
			    }
	}


	public OnlineUserMLog(
	    java.lang.Long inId,
	    java.lang.Long inUid,
	    java.lang.Long inPartyId,
	    java.lang.Long inOrgId,
	    java.lang.String inOrgCode,
	    java.lang.Long inSecond,
	    java.util.Date inDay,
		java.lang.Long inState
	 ) {
		super();
				this.id = inId;
				this.uid = inUid;
				this.partyId = inPartyId;
				this.orgId = inOrgId;
				this.orgCode = inOrgCode;
				this.second = inSecond;
				this.day = inDay;
				this.state = inState;
			}




	@Transient
	private String userName ="";

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}

